﻿using System;
using Sripirom.ATS.Core.ServiceModel.Dispatcher;
using Sripirom.ATS.Model.ServiceLog;
using Sripirom.ATS.Services.API.Inquiry.Messages;

namespace Sripirom.ATS.Services.OperationDispatchers
{
    public class InquiryDecisionData  : AbsOperationData<InquiryDecisionRequest, InquiryDecisionResponse>,
                                        IOperationData<InquiryDecisionRequest, InquiryDecisionResponse>
    {
        private Int32 Sequance = 0;
        public InquiryDecisionData(InquiryDecisionRequest channelRequest)
            :base(channelRequest)
        {

        }

        public ServiceActivityLog CreateActivityLog( ActivityStatus status, ServiceStatus serviceStatus) 
        {
            ServiceActivityLog activityLog = new ServiceActivityLog()
            {
                ActivityCode = status.ToString(),
                Status = serviceStatus.ToString(),
                ActivitySequence = ++Sequance
            };


            return activityLog;
        }
    }
}
